package cn.edu.tju.cas.util;

import org.springframework.stereotype.Component;

/**
 * Created by catold on 16/4/7.
 */
@Component
public class Config {
    private String casBase;
    private String curBaseUrl;
    private String casLoginUrl;
    private String casLogoutUrl;
    private String casLoginValidate;

    public String getCasBase() {
        return casBase;
    }

    public void setCasBase(String casBase) {
        this.casBase = casBase;
    }

    public String getCurBaseUrl() {
        return curBaseUrl;
    }

    public void setCurBaseUrl(String curBaseUrl) {
        this.curBaseUrl = curBaseUrl;
    }

    public String getCasLoginUrl() {
        return casLoginUrl;
    }

    public void setCasLoginUrl(String casLoginUrl) {
        this.casLoginUrl = casLoginUrl;
    }

    public String getCasLogoutUrl() {
        return casLogoutUrl;
    }

    public void setCasLogoutUrl(String casLogoutUrl) {
        this.casLogoutUrl = casLogoutUrl;
    }

    public String getCasLoginValidate() {
        return casLoginValidate;
    }

    public void setCasLoginValidate(String casLoginValidate) {
        this.casLoginValidate = casLoginValidate;
    }
//
//    public static final String CAS_BASE = "http://localhost:8080/";
//    public static final String CUR_BASE_URL = "http://localhost:8080/server/mng/";
//    public static final String CUR_LOGIN_URL = CUR_BASE_URL + "user/login";
//    public static final String CAS_LOGIN_URL = CAS_BASE + "login?service=" + CUR_LOGIN_URL;
//    public static final String CAS_LOGOUT_URL = CAS_BASE + "logout?service=" + CUR_LOGIN_URL;
//    public static final String CAS_LOGIN_VALIDATE = CAS_BASE + "serviceValidate?service=" + CUR_LOGIN_URL + "&ticket=";
}
